#include <stdio.h>

#if defined(_MSC_VER)
// nghttp2 defaults to int
typedef int ssize_t;
#endif
#include <ngtcp2/ngtcp2.h>
#include <ngtcp2/version.h>

int main()
{
    const ngtcp2_info* info = ngtcp2_version(NGTCP2_VERSION_NUM);
    if (info) {
        printf("ngtcp2 ver=%d version=%s\n", info->version_num, info->version_str);
    } else {
        printf("ngtcp2: cannot get version\n");
    }
    return 0;
}
